package com.hdax.dm.controller;

import com.hdax.dm.common.utils.CommonResponse;
import com.hdax.dm.service.IndexNavService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/index")
public class IndexNavController {

    @Autowired
    private IndexNavService navService;

    @PostMapping(path = "nav")
    public CommonResponse nav(){
        return navService.indexNavs();
    }
}
